/*****************************************************************
 MYD Engine v0.1

 File: myd_parser.cpp
 Created: 27/07/09
*****************************************************************/

#include "myd_parser.h"

using namespace myd;

void Parser::readFile(char* fileName)
{
	//"zeromemory"
	nullify();
	
	file.open(fileName);
	file.is_open();
	
	if (file.fail())
		return;

	while (file.good())
	{
		for (int j=0;j<4;j++)
		{
			file >> line;
			readVector[i][j] = line;
		}
		i++;
	}
}

void Parser::nullify()
{
	for (int i=0; i<128; i++)
		for (int j=0; j<4; j++)
			readVector[i][j] = ' ';
}

Parser::Parser()
:
i(0)
{
}

Parser::~Parser()
{
}